package com.yami.shop.personnft.platform.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.common.bean.PageDTO;
import com.yami.shop.common.bean.PageVO;
import com.yami.shop.common.response.ServerResponseEntity;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.personnft.common.model.TransferApplyRecord;
import com.yami.shop.personnft.common.service.TransferApplyService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * spu信息
 *
 * @author FrozenWatermelon
 * @date 2020-10-28 15:27:24
 */
@RestController("adminTransferApplyController")
@RequestMapping("/admin/transferApply")
@Tag(name = "admin-transferApply")
public class TransferApplyController {
	@Autowired
    private TransferApplyService transferApplyService;

    @GetMapping("/selectListPage")
    @Operation(summary =  "获取平台信息列表", description = "分页获取平台信息列表")
    public ServerResponseEntity<IPage<TransferApplyRecord>> selectListPage(PageParam<TransferApplyRecord> pageDTO, TransferApplyRecord transferApplyRecord) {
        IPage<TransferApplyRecord> page = transferApplyService.page(pageDTO, transferApplyRecord);
        return ServerResponseEntity.success(page);
    }

    @GetMapping("/selectListPage2")
    @Operation(summary =  "获取平台信息列表", description = "分页获取平台信息列表")
    public ServerResponseEntity<List<TransferApplyRecord>> selectListPage2(TransferApplyRecord transferApplyRecord) {
        List<TransferApplyRecord> page = transferApplyService.selectList(transferApplyRecord);
        return ServerResponseEntity.success(page);
    }
}
